<?php 
    $userid = AuthComponent::user('id');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo Configure::read('Creativos.sitename'),((empty($page_title) ? '' : ' - '.$page_title) ); ?></title>
<!--facebook pestaña-->
<?php echo $this->Html->script('jquery-1.7.1.min'); ?>
<?php echo $this->Html->script('jquery-ui-1.8.17.custom.min'); ?>
<?php echo $this->Html->css('style'); ?>
<!--fin facebook pestaña-->
<link href='http://fonts.googleapis.com/css?family=Asap:400,400italic,700,700italic&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Asap:400,400italic,700,700italic&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
<html xmlns:fb="http://ogp.me/ns/fb#">
</head>

<body>
	<div class="header">
		<div class="header-content">
            <?php if (empty($userid)): ?>
                <?php echo $this->Html->link(__('[IniciarSession]'),array('controller' => 'home', 'action' => 'login')); ?> |
                <?php echo $this->Html->link(__('[Registrate]'),array('controller' => 'register', 'action' => 'index')); ?>
            <?php else: ?>
                Bienvenido, <a href="#"><span><?php echo AuthComponent::user('username'); ?></span></a> | 
                <a href="#">Editar perfil</a> | 
                <?php echo $this->Html->link('Salir',array('controller' => 'home', 'action' => 'logout')); ?>
            <?php endif; ?>
        </div>
	</div>
	<div class="container">
		<div class="col-menu"> 
			<div class="url">
			</div>
			<div class="logo">
			</div>
			<div class="menu">
				<ul class="nav">
			    	<li><?php echo $this->Html->link('<span class="ini"></span>'.__('[Buenas Ideas]'), array('controller'=>'', 'action' => 'index'), array('escape' => false)); ?></li>
			        <li><?php echo $this->Html->link('<span class="ini top"></span>'.sprintf(__('[Top %s Semanal]'), 20), array('controller'=>'', 'action' => 'index'), array('escape' => false)); ?></li>
			        <li><?php echo $this->Html->link('<span class="ini sub"></span>'.__('[Sube Ideas]'), array('controller'=>'', 'action' => 'index'), array('escape' => false)); ?></li>
			     	<li><?php echo $this->Html->link('<span class="ini cla"></span>'.__('[Califica Ideas]'), array('controller'=>'', 'action' => 'index'), array('escape' => false)); ?></li>
			        <li><?php echo $this->Html->link('<span class="ini reg"></span>Reglas'         , array('controller'=>'translatableview','action'=>'display','view' => 'rules')   , array('escape' => false)); ?></li>
			        <li><?php echo $this->Html->link('<span class="ini nov"></span>Politicas'      , array('controller'=>'translatableview','action'=>'display','view' => 'policies'), array('escape' => false)); ?></li>
			     	<li><?php echo $this->Html->link('<span class="ini nov"></span>Terminos de Uso', array('controller'=>'translatableview','action'=>'display','view' => 'terms')   , array('escape' => false)); ?></li>
			        <li><?php echo $this->Html->link('<span class="ini vac"></span>Item vacio', array('controller'=>'terms', 'action' => 'index'), array('escape' => false)); ?></li>
			        <li><?php echo $this->Html->link('<span class="ini vac"></span>Item vacio', array('controller'=>'terms', 'action' => 'index'), array('escape' => false)); ?></li>
			     	<li><?php echo $this->Html->link('<span class="ini vac"></span>Item vacio', array('controller'=>'terms', 'action' => 'index'), array('escape' => false)); ?></li>
			        <li><?php echo $this->Html->link('<span class="ini vac"></span>Item vacio', array('controller'=>'terms', 'action' => 'index'), array('escape' => false)); ?></li>
			        <li><?php echo $this->Html->link('<span class="ini vac"></span>Item vacio', array('controller'=>'terms', 'action' => 'index'), array('escape' => false)); ?></li>
				</ul>
			</div>
		</div>
		<div class="content">
            <?php echo $this->Session->flash(); ?>
            <?php echo $content_for_layout; ?>
        </div>
    </div>
</body>
</html>
<!--
<?php 
echo '$this->params->params:';
print_r($this->params->params);

echo "LANG:".Configure::read('Config.language');
?>
-->